@include('admin.layout.css')
@include('admin.layout.js')




<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">




    <div class="layui-form-item">
        <label for="type" class="layui-form-label">
            分类
        </label>
        <div class="layui-input-inline">
            <select id="category_id" name="vip_level" >
                <option value="">请选择</option>
                    <option value="0" @if($user_info['vip_level'] == 0) selected @endif>游客</option>
                    <option value="1" @if($user_info['vip_level'] == 1) selected @endif>银袖会员</option>
                    <option value="2" @if($user_info['vip_level'] == 2) selected @endif>金袖会员</option>
                    <option value="3" @if($user_info['vip_level'] == 3) selected @endif>华袖会员</option>
            </select>
        </div>
    </div>

    <input type="hidden" name="user_id" value="{{$user_info['user_id']}}">

    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="submit" id="submit" value="确认">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="取消">
    </div>

</div>
<script>




    layui.use(['laydate','form'], function() {
        let form = layui.form;
        form.on('submit(submit)', function(data){
            Api.add("{{route('admin.users.user_edit')}}",data.field,function(res){
                if (res.code !== 200){
                    Utils.errorToast(res.msg);
                    return;
                }
            });
        });


    });
</script>
